//
//  NearRecommendCell.m
//  ImGuider
//
//  Created by 王鹏宇 on 2018/6/4.
//  Copyright © 2018年 imguider. All rights reserved.
//

#import "NearRecommendCell.h"

@interface NearRecommendCell ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *tagViewWidth;

@end

@implementation NearRecommendCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.tagView.tagViewWidth = self.tagViewWidth;
}


- (void)setModel:(MerchantModel *)model {
    
    _model = model;
    
    [self.IconImageView setImageURL:[NSURL URLWithString:model.pictureArray.firstObject] placeholderImage:kPlaceholderRec];
    self.nameLabel.text = model.name;
    self.tagView.tagsArray = model.tagsArray;
}

@end
